<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站供需列表样式展示</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --supply-color: #28a745; /* 供应 - 绿色系 */
            --demand-color: #dc3545; /* 需求 - 红色系 */
            --primary-color: #3366cc;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #6c757d;
            --text-color: #212529;
            --transition: all 0.2s ease;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
            padding: 30px 0;
        }
        
        .container {
            max-width: 1200px;
            padding: 0 20px;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        .list-example {
            background-color: #fff;
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 40px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        
        .example-title {
            font-size: 1.4rem;
            margin-bottom: 25px;
            color: var(--text-color);
            padding-bottom: 12px;
            border-bottom: 1px solid var(--medium-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .example-title i {
            color: var(--primary-color);
        }
        
        .example-description {
            color: var(--dark-gray);
            margin-bottom: 25px;
            font-size: 0.95rem;
        }
        
        /* 供需卡片通用样式 */
        .供需-card {
            border-radius: 8px;
            overflow: hidden;
            transition: var(--transition);
        }
        
        .供需-card:not(:last-child) {
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        .供需-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        }
        
        /* 供需类型标签 */
        .供需-type {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 10px;
        }
        
        .type-supply {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--supply-color);
        }
        
        .type-demand {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--demand-color);
        }
        
        .type-hot {
            background-color: rgba(255, 193, 7, 0.1);
            color: #fd7e14;
        }
        
        /* 发布者信息样式 */
        .供需-author {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 10px;
            flex-shrink: 0;
        }
        
        .author-name {
            font-weight: 500;
            color: var(--text-color);
            text-decoration: none;
            margin-right: 10px;
        }
        
        .author-name:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }
        
        .供需-time {
            color: var(--dark-gray);
            margin-right: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .供需-category {
            color: var(--primary-color);
            background-color: rgba(51, 102, 204, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        /* 供需内容样式 */
        .供需-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 12px;
            transition: var(--transition);
        }
        
        .供需-title a {
            color: var(--text-color);
            text-decoration: none;
        }
        
        .供需-title a:hover {
            color: var(--primary-color);
        }
        
        .供需-description {
            color: var(--dark-gray);
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 价格信息 */
        .供需-price {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        .price-supply {
            color: var(--supply-color);
        }
        
        .price-demand {
            color: var(--demand-color);
        }
        
        /* 图片容器样式 */
        .供需-images {
            margin-bottom: 15px;
            border-radius: 6px;
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            height: 220px;
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-gray);
            font-size: 0.9rem;
        }
        
        .multi-image {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            height: 160px;
        }
        
        .multi-image .image-item {
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-gray);
            font-size: 0.8rem;
        }
        
        /* 供需详情信息 */
        .供需-details {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }
        
        .detail-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--dark-gray);
        }
        
        .detail-item strong {
            color: var(--text-color);
        }
        
        /* 互动数据和操作样式 */
        .供需-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.9rem;
            color: var(--dark-gray);
        }
        
        .供需-stats {
            display: flex;
            gap: 18px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            color: var(--dark-gray);
            background: none;
            border: none;
            padding: 3px 8px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .action-btn:hover {
            color: var(--primary-color);
            background-color: rgba(51, 102, 204, 0.1);
        }
        
        .action-btn.liked {
            color: var(--demand-color);
        }
        
        .action-btn.bookmarked {
            color: #ffc107;
        }
        
        .contact-btn, .detail-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 6px 15px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .contact-btn:hover, .detail-btn:hover {
            background-color: #2855b3;
            transform: translateY(-2px);
        }
        
        .contact-btn.contacted {
            background-color: var(--supply-color);
        }
        
        .contact-btn.contacted:hover {
            background-color: #218838;
        }
        
        .detail-btn {
            background-color: var(--medium-gray);
            color: var(--text-color);
        }
        
        .detail-btn:hover {
            background-color: #d0d7dc;
        }
        
        /* 紧凑列表样式特定样式 */
        .list-compact .供需-card {
            display: flex;
            gap: 15px;
        }
        
        .list-compact .供需-image-container {
            width: 140px;
            height: 140px;
            flex-shrink: 0;
        }
        
        .list-compact .供需-content-wrap {
            flex-grow: 1;
        }
        
        .list-compact .供需-title {
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        
        .list-compact .供需-description {
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        .list-compact .single-image {
            height: 100%;
        }
        
        .list-compact .供需-details {
            gap: 10px;
            margin-bottom: 10px;
        }
        
        /* 网格样式特定样式 */
        .list-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .list-grid .供需-card {
            border: 1px solid var(--medium-gray);
            padding: 20px;
            margin-bottom: 0;
        }
        
        .list-grid .供需-images {
            margin-bottom: 15px;
        }
        
        .list-grid .single-image {
            height: 180px;
        }
        
        .list-grid .供需-actions {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        /* 简约列表样式特定样式 */
        .list-minimal .供需-card {
            padding: 15px 0;
        }
        
        .list-minimal .供需-title {
            font-size: 1.15rem;
            margin-bottom: 8px;
        }
        
        .供需-meta {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--dark-gray);
            gap: 10px;
        }
        
        .meta-left, .meta-right {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
        }
        
        /* 悬停效果增强 */
        .hover-lift {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .hover-lift:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0,0,0,0.1);
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .list-compact .供需-card {
                flex-direction: column;
            }
            
            .list-compact .供需-image-container {
                width: 100%;
                height: 200px;
            }
            
            .供需-actions, .供需-stats, .action-buttons {
                flex-wrap: wrap;
                gap: 8px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="page-header">
            <h1>社交网站供需列表样式展示</h1>
            <p class="text-muted">展示不同风格的供应与需求列表，支持无图和多图信息，包含完整的互动功能和操作按钮</p>
        </div>
        
        <!-- 示例1：标准列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-list"></i> 标准列表样式</h3>
            <p class="example-description">包含完整信息的标准供需列表，展示标题、详情、发布者信息、互动数据和操作按钮</p>
            
            <!-- 带单张图片的供应信息 -->
            <div class="供需-card hover-lift">
                <span class="供需-type type-supply">供应</span>
                
                <div class="供需-author">
                    <div class="author-avatar">张</div>
                    <a href="#" class="author-name">张三</a>
                    <span class="供需-time"><i class="far fa-clock"></i> 2小时前</span>
                    <span class="供需-category">电子产品</span>
                </div>
                
                <h2 class="供需-title">
                    <a href="#">闲置 MacBook Pro 2021 16寸 出售，95成新</a>
                </h2>
                
                <p class="供需-description">去年购买的MacBook Pro 2021款，16寸，M1 Pro芯片，16GB内存，512GB存储。使用不到一年，保护良好，无划痕，电池健康度95%以上。附带原装充电器和保护壳，因升级设备故出售。</p>
                
                <div class="供需-images">
                    <div class="single-image">
                        <i class="fas fa-laptop me-2"></i> MacBook Pro 实物图片
                    </div>
                </div>
                
                <div class="供需-price price-supply">¥12,800 元</div>
                
                <div class="供需-details">
                    <div class="detail-item"><strong>所在地：</strong>北京市朝阳区</div>
                    <div class="detail-item"><strong>发布时间：</strong>2023-06-15</div>
                    <div class="detail-item"><strong>有效期：</strong>30天</div>
                </div>
                
                <div class="供需-actions">
                    <div class="供需-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>256</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-handshake"></i>
                            <span>12 意向</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-thumbs-up"></i>
                            <span>38</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                        <button class="detail-btn">
                            <i class="fas fa-info-circle"></i>
                            <span>详情</span>
                        </button>
                        <button class="contact-btn">
                            <i class="fas fa-comments"></i>
                            <span>联系</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 带多张图片的需求信息 -->
            <div class="供需-card hover-lift">
                <span class="供需-type type-demand">需求</span>
                
                <div class="供需-author">
                    <div class="author-avatar">李</div>
                    <a href="#" class="author-name">李四</a>
                    <span class="供需-time"><i class="far fa-clock"></i> 昨天 10:23</span>
                    <span class="供需-category">家居用品</span>
                </div>
                
                <h2 class="供需-title">
                    <a href="#">求购二手实木餐桌椅一套，四人位或六人位均可</a>
                </h2>
                
                <p class="供需-description">新家装修完毕，需要购置一套实木餐桌椅，四人位或六人位均可。偏好胡桃木、橡木材质，款式简约现代。希望成色较新，无明显划痕和损坏。预算5000元以内，北京地区可自提。</p>
                
                <div class="供需-images">
                    <div class="multi-image">
                        <div class="image-item">理想款式1</div>
                        <div class="image-item">理想款式2</div>
                        <div class="image-item">理想款式3</div>
                    </div>
                </div>
                
                <div class="供需-price price-demand">预算 ¥5,000 元以内</div>
                
                <div class="供需-details">
                    <div class="detail-item"><strong>所在地：</strong>北京市海淀区</div>
                    <div class="detail-item"><strong>发布时间：</strong>2023-06-14</div>
                    <div class="detail-item"><strong>需求期限：</strong>15天</div>
                </div>
                
                <div class="供需-actions">
                    <div class="供需-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>189</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-handshake"></i>
                            <span>8 意向</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-thumbs-up"></i>
                            <span>24</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn liked">
                            <i class="fas fa-heart"></i>
                            <span>已赞</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                        <button class="detail-btn">
                            <i class="fas fa-info-circle"></i>
                            <span>详情</span>
                        </button>
                        <button class="contact-btn">
                            <i class="fas fa-comments"></i>
                            <span>联系</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 无图片的热门供应信息 -->
            <div class="供需-card hover-lift">
                <span class="供需-type type-hot">热门供应</span>
                
                <div class="供需-author">
                    <div class="author-avatar">王</div>
                    <a href="#" class="author-name">王五</a>
                    <span class="供需-time"><i class="far fa-clock"></i> 3天前</span>
                    <span class="供需-category">服务技能</span>
                </div>
                
                <h2 class="供需-title">
                    <a href="#">提供周末英语口语陪练服务，多年外贸经验</a>
                </h2>
                
                <p class="供需-description">本人有8年外贸工作经验，英语流利，发音标准。提供周末英语口语陪练服务，可针对日常交流、商务谈判、旅游出行等不同场景进行练习。可线上视频或线下见面，价格优惠，按小时计费。</p>
                
                <div class="供需-price price-supply">¥80 元/小时</div>
                
                <div class="供需-details">
                    <div class="detail-item"><strong>服务地区：</strong>线上/上海市</div>
                    <div class="detail-item"><strong>发布时间：</strong>2023-06-12</div>
                    <div class="detail-item"><strong>服务时间：</strong>周六、周日</div>
                </div>
                
                <div class="供需-actions">
                    <div class="供需-stats">
                        <div class="stat-item">
                            <i class="far fa-eye"></i>
                            <span>432</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-handshake"></i>
                            <span>27 意向</span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-thumbs-up"></i>
                            <span>65</span>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="action-btn">
                            <i class="far fa-heart"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn bookmarked">
                            <i class="fas fa-bookmark"></i>
                            <span>已收藏</span>
                        </button>
                        <button class="detail-btn">
                            <i class="fas fa-info-circle"></i>
                            <span>详情</span>
                        </button>
                        <button class="contact-btn">
                            <i class="fas fa-comments"></i>
                            <span>联系</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例2：紧凑列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-th-list"></i> 紧凑列表样式</h3>
            <p class="example-description">信息密度更高的紧凑布局，适合展示大量供需内容，左侧图片右侧文字的布局节省空间</p>
            
            <div class="list-compact">
                <!-- 带图片的供应信息 -->
                <div class="供需-card hover-lift">
                    <div class="供需-image-container">
                        <div class="single-image">
                            <i class="fas fa-couch"></i>
                        </div>
                    </div>
                    
                    <div class="供需-content-wrap">
                        <span class="供需-type type-supply">供应</span>
                        
                        <div class="供需-author">
                            <div class="author-avatar">赵</div>
                            <a href="#" class="author-name">赵六</a>
                            <span class="供需-time"><i class="far fa-clock"></i> 5小时前</span>
                            <span class="供需-category">家具家电</span>
                        </div>
                        
                        <h2 class="供需-title">
                            <a href="#">宜家三人沙发出售，使用一年，9成新</a>
                        </h2>
                        
                        <p class="供需-description">宜家KIVIK系列三人沙发，灰色，使用一年左右，保养良好，无污渍破损。因搬家尺寸不合适故出售，自提。</p>
                        
                        <div class="供需-price price-supply">¥1,200 元</div>
                        
                        <div class="供需-details">
                            <div class="detail-item"><strong>地点：</strong>广州市天河区</div>
                            <div class="detail-item"><strong>意向：</strong>5人</div>
                        </div>
                        
                        <div class="供需-actions">
                            <div class="供需-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>128</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>19</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons">
                                <button class="action-btn">
                                    <i class="far fa-heart"></i>
                                </button>
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                                <button class="detail-btn">
                                    <i class="fas fa-info-circle"></i>
                                </button>
                                <button class="contact-btn">
                                    <i class="fas fa-comments"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的需求信息 -->
                <div class="供需-card hover-lift">
                    <div class="供需-content-wrap">
                        <span class="供需-type type-demand">需求</span>
                        
                        <div class="供需-author">
                            <div class="author-avatar">孙</div>
                            <a href="#" class="author-name">孙七</a>
                            <span class="供需-time"><i class="far fa-clock"></i> 1天前</span>
                            <span class="供需-category">数码配件</span>
                        </div>
                        
                        <h2 class="供需-title">
                            <a href="#">求购二手任天堂Switch，要求配件齐全</a>
                        </h2>
                        
                        <p class="供需-description">想购买一台二手任天堂Switch，续航版优先，要求配件齐全，无ban机，功能正常，最好带几款热门游戏。</p>
                        
                        <div class="供需-price price-demand">预算 ¥1,800 元以内</div>
                        
                        <div class="供需-details">
                            <div class="detail-item"><strong>地点：</strong>深圳市南山区</div>
                            <div class="detail-item"><strong>意向：</strong>3人</div>
                        </div>
                        
                        <div class="供需-actions">
                            <div class="供需-stats">
                                <div class="stat-item">
                                    <i class="far fa-eye"></i>
                                    <span>97</span>
                                </div>
                                <div class="stat-item">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>12</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons">
                                <button class="action-btn liked">
                                    <i class="fas fa-heart"></i>
                                </button>
                                <button class="action-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                                <button class="detail-btn">
                                    <i class="fas fa-info-circle"></i>
                                </button>
                                <button class="contact-btn">
                                    <i class="fas fa-comments"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例3：网格卡片样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-th"></i> 网格卡片样式</h3>
            <p class="example-description">卡片式网格布局，视觉效果突出，适合图片内容丰富的供需信息展示</p>
            
            <div class="list-grid">
                <!-- 带单张图片的供应信息 -->
                <div class="供需-card hover-lift">
                    <div class="供需-images">
                        <div class="single-image">
                            <i class="fas fa-camera me-2"></i> 相机图片
                        </div>
                    </div>
                    
                    <span class="供需-type type-supply">供应</span>
                    
                    <div class="供需-author">
                        <div class="author-avatar">周</div>
                        <a href="#" class="author-name">周八</a>
                        <span class="供需-time"><i class="far fa-clock"></i> 4天前</span>
                    </div>
                    
                    <h2 class="供需-title">
                        <a href="#">佳能 EOS R5 全画幅微单相机 出租</a>
                    </h2>
                    
                    <p class="供需-description">佳能EOS R5专业微单相机，配备24-105mm镜头，适合专业摄影和视频拍摄，可按天出租。</p>
                    
                    <div class="供需-price price-supply">¥300 元/天</div>
                    
                    <div class="供需-details">
                        <div class="detail-item"><strong>地区：</strong>杭州市</div>
                        <div class="detail-item"><strong>意向：</strong>12人</div>
                    </div>
                    
                    <div class="供需-actions">
                        <div class="供需-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>326</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-thumbs-up"></i>
                                <span>47</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="contact-btn">
                                <i class="fas fa-comments"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 带多张图片的需求信息 -->
                <div class="供需-card hover-lift">
                    <div class="供需-images">
                        <div class="multi-image">
                            <div class="image-item">风格参考1</div>
                            <div class="image-item">风格参考2</div>
                            <div class="image-item">风格参考3</div>
                        </div>
                    </div>
                    
                    <span class="供需-type type-demand">需求</span>
                    
                    <div class="供需-author">
                        <div class="author-avatar">吴</div>
                        <a href="#" class="author-name">吴九</a>
                        <span class="供需-time"><i class="far fa-clock"></i> 1周前</span>
                    </div>
                    
                    <h2 class="供需-title">
                        <a href="#">寻找室内设计师，为80平米公寓做装修设计</a>
                    </h2>
                    
                    <p class="供需-description">新购80平米两居室，需要整体装修设计，偏好现代简约风格，预算有限，希望性价比高。</p>
                    
                    <div class="供需-price price-demand">预算 ¥5,000 元以内</div>
                    
                    <div class="供需-details">
                        <div class="detail-item"><strong>地区：</strong>成都市</div>
                        <div class="detail-item"><strong>意向：</strong>8人</div>
                    </div>
                    
                    <div class="供需-actions">
                        <div class="供需-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>254</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-thumbs-up"></i>
                                <span>32</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i>
                            </button>
                            <button class="contact-btn">
                                <i class="fas fa-comments"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 无图片的供应信息 -->
                <div class="供需-card hover-lift">
                    <span class="供需-type type-supply">供应</span>
                    
                    <div class="供需-author">
                        <div class="author-avatar">郑</div>
                        <a href="#" class="author-name">郑十</a>
                        <span class="供需-time"><i class="far fa-clock"></i> 2天前</span>
                    </div>
                    
                    <h2 class="供需-title">
                        <a href="#">提供Python编程一对一辅导，零基础入门到精通</a>
                    </h2>
                    
                    <p class="供需-description">计算机专业硕士，5年编程经验，提供Python编程一对一在线辅导，适合零基础学习者，课程可定制。</p>
                    
                    <div class="供需-price price-supply">¥150 元/小时</div>
                    
                    <div class="供需-details">
                        <div class="detail-item"><strong>方式：</strong>线上教学</div>
                        <div class="detail-item"><strong>意向：</strong>6人</div>
                    </div>
                    
                    <div class="供需-actions">
                        <div class="供需-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>187</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-thumbs-up"></i>
                                <span>29</span>
                            </div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="action-btn">
                                <i class="far fa-heart"></i>
                            </button>
                            <button class="contact-btn">
                                <i class="fas fa-comments"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 示例4：简约列表样式 -->
        <div class="list-example">
            <h3 class="example-title"><i class="fas fa-border-all"></i> 简约列表样式</h3>
            <p class="example-description">极简风格的供需列表，突出核心信息，适合注重信息获取效率的平台</p>
            
            <div class="list-minimal">
                <!-- 供应信息 -->
                <div class="供需-card hover-lift">
                    <span class="供需-type type-supply">供应</span>
                    
                    <h2 class="供需-title">
                        <a href="#">出售闲置大疆 DJI Mini 3 Pro 无人机，几乎全新</a>
                    </h2>
                    
                    <div class="供需-price price-supply">¥4,200 元</div>
                    
                    <div class="供需-meta">
                        <div class="meta-left">
                            <a href="#" class="author-name">钱十一</a> · 
                            <span class="供需-time"><i class="far fa-clock me-1"></i>3天前</span> · 
                            <span class="供需-category">数码产品</span> ·
                            <span><i class="far fa-handshake me-1"></i>9意向</span>
                        </div>
                        <div class="meta-right">
                            <span class="me-3"><i class="far fa-eye me-1"></i> 215</span>
                            <button class="action-btn"><i class="far fa-heart"></i></button>
                            <button class="detail-btn">详情</button>
                            <button class="contact-btn">联系</button>
                        </div>
                    </div>
                </div>
                
                <!-- 需求信息 -->
                <div class="供需-card hover-lift">
                    <span class="供需-type type-demand">需求</span>
                    
                    <h2 class="供需-title">
                        <a href="#">求租市中心一室一厅，月租5000元以内，长期租住</a>
                    </h2>
                    
                    <div class="供需-price price-demand">预算 ¥5,000 元/月</div>
                    
                    <div class="供需-meta">
                        <div class="meta-left">
                            <a href="#" class="author-name">孙十二</a> · 
                            <span class="供需-time"><i class="far fa-clock me-1"></i>1周前</span> · 
                            <span class="供需-category">房屋租赁</span> ·
                            <span><i class="far fa-handshake me-1"></i>15意向</span>
                        </div>
                        <div class="meta-right">
                            <span class="me-3"><i class="far fa-eye me-1"></i> 532</span>
                            <button class="action-btn liked"><i class="fas fa-heart"></i></button>
                            <button class="detail-btn">详情</button>
                            <button class="contact-btn">联系</button>
                        </div>
                    </div>
                </div>
                
                <!-- 热门供应信息 -->
                <div class="供需-card hover-lift">
                    <span class="供需-type type-hot">热门供应</span>
                    
                    <h2 class="供需-title">
                        <a href="#">周末上门美甲服务，款式多样，价格优惠</a>
                    </h2>
                    
                    <div class="供需-price price-supply">¥88 元起</div>
                    
                    <div class="供需-meta">
                        <div class="meta-left">
                            <a href="#" class="author-name">周十三</a> · 
                            <span class="供需-time"><i class="far fa-clock me-1"></i>1天前</span> · 
                            <span class="供需-category">生活服务</span> ·
                            <span><i class="far fa-handshake me-1"></i>23意向</span>
                        </div>
                        <div class="meta-right">
                            <span class="me-3"><i class="far fa-eye me-1"></i> 678</span>
                            <button class="action-btn"><i class="far fa-heart"></i></button>
                            <button class="detail-btn">详情</button>
                            <button class="contact-btn">联系</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 点赞功能交互
        document.querySelectorAll('.action-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                
                // 点赞按钮交互
                if (this.querySelector('.fa-heart')) {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('.fa-heart');
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                }
                
                // 收藏按钮交互
                if (this.querySelector('.fa-bookmark')) {
                    this.classList.toggle('bookmarked');
                    const icon = this.querySelector('.fa-bookmark');
                    if (this.classList.contains('bookmarked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                }
            });
        });
        
        // 联系按钮交互
        document.querySelectorAll('.contact-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                
                this.classList.toggle('contacted');
                const icon = this.querySelector('i');
                const text = this.querySelector('span');
                
                if (this.classList.contains('contacted')) {
                    if (text) text.textContent = '已联系';
                    
                    // 更新意向数量（简单模拟）
                    const 供需Card = this.closest('.供需-card');
                    const interestCountElement = 供需Card.querySelector('.stat-item:has(.fa-handshake) span') || 
                                              供需Card.querySelector('.detail-item:contains("意向")');
                    if (interestCountElement) {
                        const currentText = interestCountElement.textContent;
                        const currentNumber = parseInt(currentText.match(/\d+/)[0]);
                        interestCountElement.textContent = currentText.replace(/\d+/, currentNumber + 1);
                    }
                } else {
                    if (text) text.textContent = '联系';
                }
            });
        });
        
        // 详情按钮交互
        document.querySelectorAll('.detail-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                const 供需Title = this.closest('.供需-card').querySelector('.供需-title a').textContent;
                alert(`查看详情："${供需Title}"`);
            });
        });
    </script>
</body>
</html>
    
